home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / soundkit / SoundMeter.h < prev    next >
Text File  |  1990-10-15  |  2KB  |  69 lines

  1. /*
  2.     SoundMeter.h
  3.     Sound Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import <appkit/View.h>
  8.  
  9. @interface SoundMeter:View
  10. {
  11.     id sound;
  12.     int currentSample;
  13.     float currentValue;
  14.     float currentPeak;
  15.     float minValue;
  16.     float maxValue;
  17.     float holdTime;
  18.     float backgroundGray;
  19.     float foregroundGray;
  20.     float peakGray;
  21.     struct {
  22.     unsigned int running:1;
  23.     unsigned int bezeled:1;
  24.     unsigned int shouldStop:1;
  25.     unsigned int _reservedFlags:13;
  26.     } smFlags;
  27.     DPSTimedEntry _timedEntry;
  28.     int _valTime;
  29.     int _peakTime;
  30.     float _valOneAgo;
  31.     float _valTwoAgo;
  32. }
  33.  
  34. - initFrame:(const NXRect *)frameRect;
  35.  
  36. - read:(NXTypedStream *)aStream;
  37. - write:(NXTypedStream *)aStream;
  38. - (float)holdTime;
  39. - setHoldTime:(float)seconds;
  40. - (float)backgroundGray;
  41. - setBackgroundGray:(float)aValue;
  42. - (float)foregroundGray;
  43. - setForegroundGray:(float)aValue;
  44. - (float)peakGray;
  45. - setPeakGray:(float)aValue;
  46. - sound;
  47. - setSound:aSound;
  48. - run:sender;
  49. - stop:sender;
  50. - (BOOL)isRunning;
  51. - (BOOL)isBezeled;
  52. - setBezeled:(BOOL)aFlag;
  53. - setFloatValue:(float)aValue;
  54. - (float)floatValue;
  55. - (float)peakValue;
  56. - (float)minValue;
  57. - (float)maxValue;
  58. - drawSelf:(const NXRect *)rects :(int)rectCount;
  59. - drawCurrentValue;
  60.  
  61. /* 
  62.  * The following new... methods are now obsolete.  They remain in this  
  63.  * interface file for backward compatibility only.  Use Object's alloc method  
  64.  * and the init... methods defined in this class instead.
  65.  */
  66. + newFrame:(const NXRect *)frameRect;
  67.  
  68. @end
  69.